/**
 * Created by Veronica on 2017/3/25.
 */
/*使用instant来计时一项操作*/
package app13;
import java.time.Duration;
import java.time.Instant;
public class InstantDemo1 {
    public static void main(String[] args) {
        Instant start = Instant.now();
        Instant end = Instant.now();
        System.out.println(Duration.between(start,end).toMillis());
    }
}
